package mspbots.autotask.data.core.servicecall;


import org.springframework.data.r2dbc.repository.R2dbcRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Mono;

/**
 * @author mspbots
 */
@Repository
public interface ServiceCallsRepository extends R2dbcRepository<ServiceCalls, Long> {

    /**
     * find entity other id and tenant id
     *
     * @param otherId  other Id
     * @param tenantId tenant id
     * @return Project entity
     */
    Mono<ServiceCalls> findByOtherIdAndTenantId(Long otherId, Long tenantId);

}
